load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "protectedts",
    srcs = [
        "protectedts.go",
        "settings.go",
        "testing_knobs.go",
    ],
    importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/base",
        "//pkg/kv/kvserver/protectedts/ptpb",
        "//pkg/roachpb",
        "//pkg/settings",
        "//pkg/spanconfig",
        "//pkg/sql/isql",
        "//pkg/util/hlc",
        "//pkg/util/metric",
        "//pkg/util/stop",
        "//pkg/util/uuid",
        "@com_github_cockroachdb_errors//:errors",
    ],
)

go_test(
    name = "protectedts_test",
    size = "small",
    srcs = ["protectedts_test.go"],
    embed = [":protectedts"],
)
